<?php

class CategoryWidget extends CWidget {

    public $title = 'THỂ LOẠI';
    public $visible = true;
    public $array = array();
    public $model;

    public function init() {
        if ($this->visible) {
			$this->renderContent();  
        }
    }
    protected function renderContent() {
        $this->model = Jobtype::model()->findAll();
        $this->render('Category');
    }

}

?>
